package com.liang.controller;

import com.liang.common.AutoResult;
import com.liang.common.Result;
import com.liang.service.feign.PayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liangben
 * @date 2022/4/12 23:56
 */
@Api(tags = "test")
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private PayService payService;


    @ApiOperation("测试")
    @GetMapping("/test")
    public Result test(){
        return Result.buildSuccessData(payService.sayHi());
    }
}
